import request from '@/utils/request'

// 列表
export const getParkList = data => request('/aqjcGardenInfo/list', 'get', data)
export const getParkCompanyList = data => request('/aqjcGardenCompany/list', 'get', data)
export const getGCompanyList = data => request('/aqjcGcompanyRecord/list', 'get', data)

export const getdeptByparentid = data => request('/system/user/deptTree', 'get', data)
export const getaqjcGcomptype = data => request('/system/aqjcGcomptype/apiList', 'get', data)
export const getaqjcGcomptypeCon = data => request('/system/aqjcGcomptypeCon/apiList', 'get', data)
export const getParamsGcompanyList = data => request('/aqjcGardenCompany/list', 'get', data)

// 获取详情
export const getParkDetail = id => request(`/aqjcGardenInfo/${id}`, 'get')
export const getParkCompanyDetail = id => request(`/aqjcGardenCompany/${id}`, 'get')
export const getGCompanyDetail = id => request(`/aqjcGcompanyRecord/${id}`, 'get')

// 新增园区信息
export const addaqjcGardenInfo = data => request('/aqjcGardenInfo', 'post', data)
export const addaqjcGardenCompanyInfo = data => request('/aqjcGardenCompany', 'post', data)
export const addAqjcGcompanyRecord = data => request('/aqjcGcompanyRecord', 'post', data)

// 修改园区信息
export const modifyaqjcGardenInfo = data => request('/aqjcGardenInfo', 'put', data)
export const modifyaqjcGardenCompanyInfo = data => request('/aqjcGardenCompany', 'put', data)
export const updateAqjcGcompanyRecord = data => request('/aqjcGcompanyRecord', 'put', data)